Component({
  properties: {
    titledata: {
      type: Array,
      value: [],
    },
  },

  data: {
    currentIndex: 0,
  },

  methods: {
    handleChange(e) {
      let newIndex = e.target.dataset.cindex;
      console.log(newIndex);
      this.setData({
        currentIndex: newIndex,
      });
      this.triggerEvent("changeTabs", newIndex);
    },
  },
});
